home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of Shareware
/
Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso
/
mac
/
DOS
/
CAD_CAM
/
A7221V1B
/
MAKEFILE.MSC
< prev
next >
Wrap
Text File
|
1992-03-17
|
3KB
|
117 lines
#
# This makefile is designed to work with MicroSoft C 5.1
#
# Module: makefile.msc
# Date: 3/9/92
# Version: 1.0b
# Author: Dave Lutz
# Email: lutz@psych.rochester.edu
# Copyright: 1992 University of Rochester, Psychology Dept.
#
# Disclaimer: This software is distributed free of charge. As such, it
# comes with ABSOLUTELY NO WARRANTY. The user of the software
# assumes ALL RISKS associated with its use.
#
# Your rights to modify and/or distribute this software are
# outlined in the file ADI7221.DOC.
#
# Purpose: This makefile is used to build an AutoCad ADI to device
# specific file converter. It builds the generic portions of
# the converter, then the builds the device specific portions
# and the final executable.
#
#
# Compile time options
#
# Define WARN_PENCHANGE if you want a warning issued whenever a PEN_CHANGE
# command is encountered in an ADI input file. PEN_CHANGE is not supported,
# and will normally be ignored.
#
# Define VARIABLE_DASHES if you want the patterns in dashed line types to
# be varied to ensure that only complete patterns appear in the output. The
# default is fixed dashes, which means that the patterns are always used
# exactly as defined.
#
ADIOPTIONS= #normal
#ADIOPTIONS= /DWARN_PENCHANGE /DVARIABLE_DASHES #options turned on
#
# The name of the final executable
#
EXENAME=adi7221.exe
#
# The complete path to the installed versions of the executable
#
INSTALLNAME=..\adi7221.exe
#
# Compiler command and its options
#
CC=cl
CFLAGS= /AL $(ADIOPTIONS) # normal
#CFLAGS= /AL /Zi /Od $(ADIOPTIONS) # for debugging
#
# Link command and its options
#
LD=link
LFLAGS=/NOI #normal
#LFLAGS=/NOI /CO # for debugging
#
# Install command
#
INSTALL=EXEPACK
#
# Implicit rule for building .obj files from .c files
#
.c.obj:
$(CC) $(CFLAGS) -c $*.c
#
# Object files that are part of the generic portion of the converter
#
GENOBJS= main.obj inout.obj parse.obj terminat.obj
#
# Object files that are part of the device specific portion of the converter
#
DEVOBJS= hp7221.obj hpparms.obj
#
# GENOBJS creation rules
#
main.obj: main.c adicodes.h retcodes.h inout.h parse.h terminat.h
inout.obj: inout.c inout.h retcodes.h
parse.obj: parse.c parse.h adicodes.h retcodes.h
terminat.obj: terminat.c terminat.h inout.h
#
# DEVOBJS creation rules
#
hp7221.obj: hp7221.c hp7221.h hpparms.h hpcodes.h retcodes.h inout.h
hpparms.obj: hpparms.c hpparms.h
linkfile: $(GENOBJS) $(DEVOBJS)
echo main+ > linkfile
echo inout+ >> linkfile
echo parse+ >> linkfile
echo terminat+ >> linkfile
echo hp7221+ >> linkfile
echo hpparms >> linkfile
echo $(EXENAME) $(LFLAGS) >> linkfile
echo NUL; >> linkfile
$(EXENAME): $(GENOBJS) $(DEVOBJS) linkfile
$(LD) @linkfile
$(INSTALLNAME): $(EXENAME)
$(INSTALL) $(EXENAME) $(INSTALLNAME)